package com.github.McPlugin.util;

public class MonthArray
{
    //存储签到信息,'1'代表签到,'0'代表未签到
    //共31日
    private char month[] = {'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'};

    //第几日签到,设为'1'
    MonthArray(int i)
    {
        month[i] = '1';
    }

    //读入月签到记录的字符串,加上某日签到
    MonthArray(String monthRecord,int i)
    {
        char monthTemp[] = monthRecord.toCharArray();
        monthTemp[i] = '1';
    }
}
/*
例
String monthRecord;
MonthArray monthArray = new MonthArray(14);
monthRecord = monthArray.month.toString();
updateAttendance(player.getUniqueID);

String monthRecord = selectMonthRecord(player.getUniqueId())
MonthArray monthArray = new MonthArray(monthRecord,14);
monthRecord = monthArray.month.toString();
updateAttendance(player.getUniqueID);
*/